import React, { Component } from 'react'
import Checket from './Checket'
interface IProps{
    item:any
}
export class Item extends Component<IProps> {
    render() {
        let {item} = this.props
        return (
            <div className='item'>
                 <li><Checket/></li>
                <li><dl>
                    <dt></dt>
                    <dd>{item.name}</dd>  
                    <dd>{item.weight}</dd>
                    <dd>{item.price}</dd>
                </dl></li>
        <li><button>-</button>{item.num}<button>+</button></li> 
            </div>
        )
    }
}

export default Item
